enums.Layer = {
	Main = 1,
	Window = 2,
	Tips = 3,
	Loading = 4,
	Top = 5,
	Locker = 6
};

enums.Locker = {
    ConnectSocket = 1,
    Test2 = 2,
    OverTime = 3,
    ExpanMenu = 4,
    Cannon = 5,
    NoPlayerEnter = 6,
    Place = 0xff
};
enums.OverTime = {
    Test1 = 1,
    Test2 = 2,
    TimeOut = 3,
    Login = 4,
    Place = 0xff
};

enums.Event = {
    AppEnterBackgroundEvent = "APP_ENTER_BACKGROUND_EVENT",
    AppEnterForegroundEvent = "APP_ENTER_FOREGROUND_EVENT",
    APPError = "APPError",
    PurgeCacheData = "PURGE_CACHEd_DATA",
    TestEvet = "TestEvent",
    WndOpen = "WndOpen",
    WndClose = "WndClose",
	TipsTouchBegan = "TipsTouchBegan",
    TipsTouchEnded = "TipsTouchEnded",
    ExpandMenu = "ExpandMenu",
    WithDrawMenu = "WithDrawMenu",
    LoadingAdd = "LoadingAddRes",
    SocketOpen = "SocketOpen",
    SocketClosed = "SocketClosed",
    ServerKeepLiveStart = "ServerKeepLiveStart",
    ServerKeepLiveEnd = "ServerKeepLiveEnd",
    ShowRoleBaseInfo = "ShowRoleBaseInfo",
    ConnectLoginServer = "ConnectLoginServer",
    DiamondChange  = "DiamondChange",
    GoldChange = "GoldChange",
    VipChange = "VipChange",
    Place = 0xff
};

enums.Behave = {
    Hint = 1,
    Bulletin = 2,
    TopFighterRefresh = 3,
    RecruitSailor = 4,
    VersionUpdateWnd = 5,
    AppraiseWnd = 6,
    RandomEventWnd = 7,
    FuncOpenWnd = 8
};

enums.Scene = {
    Main = "MainScene",
    Test = "TestScene",
    Place = 0xff
};

enums.Wnd = {
	Login = "LoginWnd",
    Loading = "LoadingWnd",
    Hall = "HallWnd",
    CreateTable = "CreateTableWnd",
    EnterTable = "EnterTableWnd",
    Battle = "BattleWnd",
    Pay = "PayWnd",
	Place = ""
};

enums.Scheduler = {
    PerSecond = 1,
    Frame = 2,
    Place = 0
};


enums.Socket = {
    Login = 1,
    Gate = 2,
    Game = 3
}

enums.Config = {
    Mail = "mail.dat",
    User = "userdefault.dat",
    Place = ""
}

enums.Error = {
    ERROR_OK = 1000
}

enums.PayType = {
    PAY_TYPE_ANY    = 0,
    PAY_TYPE_ALIPAY = 1,
    PAY_TYPE_WECHAT = 2,
    Place = 100000
}

enums.PayResult = {
    PAY_SUCESS     = 0,
    PAY_FAILED     = 1,
    PAY_CANCLE     = 2,
    PAY_NET_ERROR  = 3,
    PAY_WAIT       = 4
}

enums.Partner = {
    WIN_32         = 0,
    Place          = 100000
}

enums.CurPartner = 0


enums.NetCmd= {
    
    CMD_C2L_LOGIN                   = 1001,
    CMD_C2L_REGISTER                = 1002,

    CMD_L2C_LOGIN                   = 2001,
    CMD_L2C_REGISTER                = 2002,
    CMD_L2C_ALL_HALL_INFO           = 2003,
    --client <-> gate
	CMD_C2GATE_LOGIN                = 3001,
	CMD_GATE2C_LOGINSUC             = 4001,
    CMD_GATE2C_KICK_USER            = 4002,
	--client <-> game

    --client <-> center
    CMD_C2CT_CREATE_TABLE           = 5005,
    CMD_C2CT_ENTER_TABLE            = 5006,


    CMD_CT2C_USER_LOGIN             = 6001,
    CMD_CT2C_BASEINFO               = 6002,
    CMD_CT2C_PROP                   = 6003,
    CMD_CT2C_PROPERTY               = 6004,
    CMD_CT2C_CREATE_TABLE           = 6005,
    CMD_CT2C_ENTER_TABLE            = 6006,


    --client <-> game
    CMD_C2GAME_LOGIN                = 7001,
    CMD_C2GAME_LOGOUT               = 7002,
    CMD_C2GAME_JOIN                 = 7003,


    CMD_GAME2C_LOGIN                = 8001,
    CMD_GAME2C_SELF_ENTER           = 8002,
    CMD_GAME2C_JOIN                 = 8003,
    CMD_GAME2C_OTHER_ENTER          = 8004,
    CMD_GAME2C_USER_LEAVE           = 8005,
    CMD_GAME2C_KICK                 = 8006,

    Place                           = 0xff
}
